package com.chushouya.manager.dto.admin.banner;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * Banner详情DTO
 * 用于Banner详情信息展示
 * 
 * @author chushouya
 */
@Data
@ApiModel("Banner详情")
public class BannerDetailDTO {

    @ApiModelProperty("Banner ID")
    private Long bannerId;

    @ApiModelProperty("Banner名称")
    private String bannerName;

    @ApiModelProperty("位置ID")
    private Long positionId;

    @ApiModelProperty("位置名称")
    private String positionName;

    @ApiModelProperty("图片地址")
    private String image;

    @ApiModelProperty("Banner图片颜色")
    private String color;

    @ApiModelProperty("跳转类型(0:无跳转,1:小程序跳转,2:网页跳转,3:商品详情,4:主题详情,5:第三方小程序,6:导购)")
    private Integer routeType;

    @ApiModelProperty("跳转地址")
    private String target;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("状态(0:禁用,1:启用)")
    private Integer status;

    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    @ApiModelProperty("排序字段")
    private Integer sort;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdAt;

    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedAt;

    @ApiModelProperty("操作管理员")
    private String handleUser;

    @ApiModelProperty("appId")
    private String appId;

    @ApiModelProperty("app名称")
    private String appName;

    @ApiModelProperty("删除标记(0:未删除,1:已删除)")
    private Integer delFlag;

    @ApiModelProperty("平台")
    private String platform;
}
